package com.zdlog.ler.service.impl;

import com.zdlog.ler.dao.LerProvinceDao;
import com.zdlog.ler.entity.LerProvince;
import com.zdlog.ler.service.LerProvinceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: ler-fast
 * @description:
 * @author: tengxianchao
 * @email: admin@zdlog.com
 * @create: 2018-11-22 17:13
 **/

@Service
@Slf4j
public class LerProvinceServiceImpl  implements LerProvinceService {

    @Autowired
    private LerProvinceDao lerProvinceDao;

    @Override
    public List<LerProvince> findByProvince() {
        return lerProvinceDao.findByProvince();
    }

    @Override
    public List<LerProvince> findByCity(String provinceCode) {
        return lerProvinceDao.findByCity(provinceCode);
    }

    @Override
    public List<LerProvince> findByCityCode(String cityCode) {
        return lerProvinceDao.findByCityCode(cityCode);
    }
}
